<?php
// +-------------------------------------------------------------------------------
// | DingZone [ A Rapid Development Framework For Dingtalk ]
// +-------------------------------------------------------------------------------
// | BeanConfigEnum.php v1.0
// |
// | Copyright (c) 2014-2018 http://www.heimalanshi.com All rights reserved.
// | Author : Jie
// | Date : 2018-10-11
// +-------------------------------------------------------------------------------


namespace app\core\common\bean;


class BFC {
///////////////////////////////////////
    /// 字段配置key
    const TITLE = "title";
    const TYPE = "type";
    const IGNORE = "ignore";
    const KEY = "key";
    const SORT = "sort";
    const ICON = "icon";
    const CLAZZ = "class";
    const TIP = "tip";
    const FIXED = "fixed";
    const WIDTH = "width";
    const MIN_WIDTH = "minWidth";
    const HIDE = "hide";
    const FORMAT = "format";
    const TEMPLET = "templet";
    const ACTION = "action";
    const OPEN_BLANK_WIN = "openBlankWin";
    const DLG = "dlg";
    const DLG_RELOAD = "reload";
    const DLG_WIDTH = "width";
    const DLG_HEIGHT = "height";
    const DLG_TITLE = "title";
    const TAB = "tab";
    const AJAX = "ajax";
    const AJAX_TYPE = "type";
    const AJAX_CONFIRM = "confirm";
    const AJAX_RELOAD = "reload";
    const SEARCH = "search";
    const SEARCH_TYPE = "type";
    const SEARCH_MULTI = "multi";
    const SEARCH_OPTIONS = "options";
    const SEARCH_ADV = "adv";
    const SEARCH_RANGE = "range";
    const SEARCH_FORMAT = "format";
    const SEARCH_WIDTH = "width";
    const VIRTUAL = "virtual";
    const ALIGN = "align";
    const POSITION = "position";
    const TOTAL_ROW_TEXT = "totalRowText";
    const TOTAL_ROW = "totalRow";
    const COL_INDEX = "colIndex";//列显示顺序，数字越小越靠左
    const DECIMAL_PLACES = "decimalPlaces";//小数点位数
    const MOBILE = "mobile";//字段手机页面配置
    const MOBILE_DETAIL_WIDTH = "detailWidth";

    const AUTHORITY = 'authority';//权限

    ///////////////////////////////////////
    /// 字段固定
    const FIXED_LEFT = 'left'; // 固定靠左
    const FIXED_RIGHT = 'right'; // 固定靠右

    ///////////////////////////////////////
    /// 文字排版
    const ALIGN_CENTER = 'center';
    const ALIGN_LEFT = 'left';
    const ALIGN_RIGHT = 'right';

    ///////////////////////////////////////
    /// 字段类型
    const TYPE_NUMBER = 'number'; //数字
    const TYPE_PERCENT = 'percent';//百分比
    const TYPE_IMAGE = 'image'; // 图片
    const TYPE_TIMESTAMP = 'timestamp'; // 时间戳
    const TYPE_DATE = 'date'; // 日期
    const TYPE_SELECT = 'select'; // 下拉列表（主要在search中使用）
    const TYPE_CDU = 'cdu';//人员组件
    const TYPE_BOOL = 'bool';//bool类型

    //////////////////////////////////////
    /// 全局工具栏按钮位置
    const POSITION_TABLE = 'table';
    const POSITION_SEARCH = 'search';
    //////////////////////////////////////
    /// 重载
    const RELOAD_ALL = "all";
    const RELOAD_ROW = "row";

    //////////////////////////////////////
    /// 移动页面，列放置位置
    const MOBILE_POSITION_LEFT = "left";
    const MOBILE_POSITION_RIGHT = "right";
    const MOBILE_POSITION_MAJOR = "major";
    const MOBILE_POSITION_MINOR = "minor";
    const MOBILE_POSITION_DETAIL = "detail";

    /////////////////////////////////////
    /// 全局汇总配置
    const GLOBAL_TOTAL_ROW_TITLE = "title";//全局汇总字段标题
    const GLOBAL_TOTAL_ROW_TIP = "tip";//全局汇总字段悬浮提示
    const GLOBAL_TOTAL_ROW_UNIT = "unit";//全局汇总字段单位
    const GLOBAL_TOTAL_ROW_EXP = "exp";//计算表达式
}